<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>带索引的for</title>
    <script src="../js/vue.js"></script>
    <style>


    </style>
</head>
<body>

    <div id="app">
        <ul>
            <li v-for="(a,i) in args" :key="i">{{i}}---{{a}}</li>
        </ul>
    </div>

</body>
<script>
    new Vue({
        el:"#app",
        data:{
           args:[1,2,3,4,5,6]
        },

    })
</script>
</html>